package com.ea.admin.pojo.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfoDto {
    /**
     * 用户的id-主键
     */
    @ExcelIgnore
    private String userId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 1)
    private String name;

    /**
     * 单位id
     */
    @ExcelIgnore
    private String companyId;

    /**
     * 单位名称
     */
    @ExcelProperty(value = "单位名称", index = 2)
    private String companyName;

    /**
     * 部门id
     */
    @ExcelIgnore
    private String deptId;

    /**
     * 部门名称
     */
    @ExcelProperty(value = "部门名称", index = 3)
    private String deptName;

    /**
     * 职位id
     */
    @ExcelIgnore
    private String positionId;

    /**
     * 职位名称
     */
    @ExcelProperty(value = "职位名称", index = 4)
    private String positionName;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 5)
    private String sex;

    /**
     * 出生日期
     */
    @ExcelIgnore
    private Date birthday;

    @ExcelProperty(value = "出生日期", index = 6)
    private String birthdayStr;

    /**
     * 照片
     */
    @ExcelIgnore
    private String photo;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄", index = 7)
    private Integer age;

    @ExcelProperty(value = "序号", index = 0)
    private Integer serialNo;
}
